const commonRoutes = [
  {
    path: "myClientele", // 我的客户
    meta: {
      route: "/clientele/myClientele",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/myClientele")
  },

  {
    path: "myClientele/add", // 客户
    name: "myClienteleAddClientele",
    meta: {
      route: "/clientele/myClientele",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/add")
  },
  {
    path: "myClientele/edit", // 编辑
    name: "myClienteleEditClientele",
    meta: {
      route: "/clientele/myClientele",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/add")
  },
  {
    path: "myClientele/msg", // 详情
    name: "myClienteleMsgClientele",
    meta: {
      route: "/clientele/myClientele",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/msg")
  },
  {
    path: "sea", // 客户公海
    meta: {
      route: "/clientele/sea",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/sea")
  },
  {
    path: "sea/add", // 新增
    name: "seaAddClientele",
    meta: {
      route: "/clientele/sea",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/add")
  },
  {
    path: "sea/edit", // 编辑
    name: "seaEditClientele",
    meta: {
      route: "/clientele/sea",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/add")
  },
  {
    path: "sea/msg", // 详情
    name: "seaMsgClientele",
    meta: {
      route: "/clientele/sea",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/msg")
  },
  {
    path: "member", // 成员管理
    meta: {
      route: "/clientele/member",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/member")
  },
  {
    path: "member/msg", // 成员客户明细
    name: "memberMsg",
    meta: {
      route: "/clientele/member",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/member/msg")
  },
  {
    path: "member/edit", // 编辑
    name: "memberEditClientele",
    meta: {
      route: "/clientele/member",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/add")
  },
  {
    path: "member/Clientele/msg", // 成员-客户详情
    name: "memberMsgClientele",
    meta: {
      route: "/clientele/member",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/msg")
  },
  {
    path: "myClientele/imports", // 导入
    name: "myClienteleImports",
    meta: {
      route: "/clientele/myClientele",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/imports")
  },
  {
    path: "sea/imports", // 导入
    name: "seaImports",
    meta: {
      route: "/clientele/sea",
      routeSession: "clientelePage"
    },
    component: () => import("@/views/clientele/imports")
  }
];

export default {
  path: "/clientele", // 人事管理
  component: () => import("@/views/clientele"),
  redirect: "myClientele",
  children: [].concat(commonRoutes)
};
